package com.hdax.dm.api;

import com.hdax.dm.entity.scheduler.SchedulerSeat;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public interface SchedulerSeatControllerApi {

    @PostMapping(path = "/rest/seat/update")
    int updateSeat(@RequestBody SchedulerSeat seat);

    @PostMapping(path = "/rest/seat/rollback")
    boolean seatRollback(@RequestParam("orderNo")String orderNo);

    @PostMapping(path = "/rest/seat/sold")
    boolean seatSold(@RequestParam("orderNo")String orderNo);

    @PostMapping(path = "/rest/seat/updateOne")
    int updateSeatOne(@RequestParam("orderNo") String orderNo);

    @PostMapping(path = "/rest/seat/updateOneTwo")
    int updateSeatTwo(@RequestParam("orderNo") String orderNo);
}
